﻿using System;

namespace Dorm.QueryObject
{
    public class JoinExpression
    {
        public JoinExpression() { JoinType = QueryObject.JoinType.LEFT; }

        public JoinType JoinType { get; set; }
        public Type ForeignEntityType { get; set; }
        public string PropertyName { get; set; }
        public string ParentKeyName { get { return "ID"; } }
        public string ForeignKeyName { get { return PropertyName + "ID"; } }
    }

    public enum JoinType { INNER, LEFT, RIGHT }
}
